package pers.qianyu.module.comment.exception;

import pers.qianyu.exception.*;

public class CommentException extends LambBaseException {
    private static final long serialVersionUID = 2335395941811687978L;
    private final Integer code;

    public CommentException(CommentErrorCodeEnum errorCode) {
        super(errorCode.getMessage());
        this.code = errorCode.getCode();
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
